﻿using System;
using System.Data;
using System.Configuration;
using System.Web;


namespace Demo
{
    public class C_FormatText
    {
        public C_FormatText()
        {
        }
        public static string FormatTextFunction(string sFormat, string sFormatChar, string sUseFormatChar)
        {
            string s = sFormat;
            int i;
            i = s.IndexOf(sFormatChar);

            while (i > 0)
            {
                s = s.Replace(sFormatChar, sUseFormatChar);
                i = s.IndexOf(sFormatChar);
            }
            return s.Trim();
        }

    }
}
